package com.campus_activity.campus_activity.service.impl;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * sa-token 用户权限查询实现类
 *
 * @author icyrain11
 * @version 1.8
 */
@Service
public class StpInterfaceImpl implements StpInterface {


    @Override
    public List<String> getPermissionList(Object loginId, String loginType) {
        //获取用户权限信息
        List<String> permissionList = new ArrayList<>();
        return null;
    }

    @Override
    public List<String> getRoleList(Object loginId, String loginType) {
        //获取用户角色信息
//        List<String> roleList = roleMapper.getUserRoleById();
        List<String> roleList = new ArrayList<>();
        roleList.add("user");
        return roleList;
    }
}
